package com.fantasybaby.dao;

import java.util.List;
import java.util.Map;

import com.fantasybaby.common.bean.Address;

public interface IAddressDao {

	public  void add(Address t);
	public void delete(Address t);
	
	public void update(Address t);
	
	@SuppressWarnings("rawtypes")
	public Address load(Class cl,int id);
	/**
	 * 查询全部的
	 * @return
	 */
	public List<Address> findAll();
	/**
	 * 拿到分页数据
	 * @param t
	 * @param map 
	 * @return
	 */
	public List<Address> findPage(Address t,Map<String, Object> map);
	/**
	 * 找到分页个数
	 * @param t
	 * @param map
	 * @return
	 */
	public int  findPageCount(Address t,Map<String, Object> map);

}
